package com.crm.model.activity.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

@Data
@TableName("crm_activity")
public class Activity implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id; //活动id

    @TableField("activity_id")
    private String activityId; //活动编号

    private String type; //活动类型 折扣/代金券

    private String discount; //折扣

    private String voucher; //代金券

    private Integer channel; //渠道来源

    private String profile; //活动介绍

    @TableField("created_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createdTime; //创建时间
    @TableField("end_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime; //结束时间
    @TableField("updated_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updatedTime; //修改时间
}
